* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    height: 100vh;
}

/* 左侧标签栏 */
.sidebar {
    width: 160px;
    background-color: #fff;
    border-right: 1px solid #eee;
    padding: 20px 0;
}

.tag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 20px;
    margin: 0 10px;
}

.tag.active {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* 中间内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-input {
    width: 80%;
    height: 50px;
    padding: 0 20px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.3s;
}

.search-input:focus {
    box-shadow: 0 0 10px rgba(24, 144, 255, 0.2);
    border-color: #1890ff;
}

.search-input::placeholder {
    color: #999;
}

.icons-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.icon-item:hover {
    background-color: #f0f0f0;
}

.icon-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    object-fit: contain;
}

.icon-item span {
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 右侧通知区 */
.notification-area {
    width: 240px;
    background-color: #fff;
    border-left: 1px solid #eee;
    padding: 20px;
}

.notification-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.notification-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.close-notification {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.close-notification:hover {
    color: #666;
}

.notification-content {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.more-link {
    color: #1890ff;
    text-decoration: none;
    margin-left: 5px;
}

.more-link:hover {
    text-decoration: underline;
}

/* 添加按钮样式 */
.add-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-button:hover {
    background-color: #40a9ff;
}

/* 弹出框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-btn {
    background-color: #1890ff;
    color: white;
}

.cancel-btn {
    background-color: #f0f0f0;
}

/* 提示消息样式 */
.message-tip {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #52c41a;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
}

/* 创建标签按钮样式 */
.create-tag-button {
    position: absolute;
    bottom: 70px; /* 位于新建图标按钮上方 */
    left: 20px;
    padding: 10px 20px;
    background-color: #52c41a;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.create-tag-button:hover {
    background-color: #73d13d;
}

/* 标签创建弹窗样式 */
.tag-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 右键菜单样式 */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
}

.menu-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

/* 编辑模态框样式 */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#current-icon {
    display: block;
    object-fit: contain;
    background-color: #f5f5f5;
    border-radius: 4px;
}

/* 标签右键菜单样式 */
.tag-context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
}

.tag-context-menu .menu-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tag-context-menu .menu-item:hover {
    background-color: #f5f5f5;
}
  